package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.SysMenu;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysMenuMapper extends K2Mapper<SysMenu> {
    long insertOfSelective(SysMenu sysMenu);

    SysMenu getById(Long id);

    int deleteById(Long id);

    int updateDeletedFlag(SysMenu sysMenu);

    List<SysMenu> queryList();

    int updateByPrimaryKeySelective(SysMenu sysMenu);

    int updateByPrimaryKey(SysMenu sysMenu);

    List<SysMenu> queryByUserId(Long userId);

    List<SysMenu> queryByRoleId(Long roleId);

}